-- GENERATED SPELL FOR [Scorned Spirit of Air] --


function spell0_21132(pUnit, Event) --@Call to the Spirits,Self--
pUnit:FullCastSpellOnTarget(36206,pUnit)
pUnit:RegisterEvent('Sorts_21132', 587, 1)
end

function Sorts_21132(pUnit, Event)
local choix_sorts_21132 = math.random(0, 0)
if choix_sorts_21132 == 0 then
pUnit:RegisterEvent('spell0_21132', 1, 1)
end
end

function mob21132_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21132', math.random(1500, 3000), 1)
end

function mob21132_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21132_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21132_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21132, 1, 'mob21132_Action')
RegisterUnitEvent(21132, 2, 'mob21132_Leave')
RegisterUnitEvent(21132, 3, 'mob21132_Kill')
RegisterUnitEvent(21132, 4, 'mob21132_Die')
